package com.honyelchak.shortlink.base.common.config;

import com.honyelchak.shortlink.base.common.web.GlobalExceptionHandler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

public class AutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public GlobalExceptionHandler globalExceptionHandler() {
        return new GlobalExceptionHandler();
    }

    @Bean
    public MyMetaObjectHandler myMetaObjectHandler(){return new MyMetaObjectHandler();}

}
